home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_096 / warptext / warp.arc / WarpText.h < prev    next >
C/C++ Source or Header  |  1987-08-27  |  3KB  |  54 lines

  1. /* ------------------------------------------------------------------------
  2.  * graphics/WarpText.h -- 'C' include for WarpText           Bill Kelly
  3.  * text routines.               WT 2.0                       07/06/87
  4.  *
  5.  * Copyright 1987 by Bill W. Kelly.  All Rights Reserved.
  6.  *
  7.  * This is meant to go in the Graphics directory of the C includes.
  8.  * Made for C by Anson Mah 06/08/87  |  06Jun87 added NewWarpInfo (billk)
  9.  * ------------------------------------------------------------------------
  10.  */
  11.  
  12. /* -------------------------------------------------------------------------
  13.  * The following structure, WarpInfo, is used by these four routines:
  14.  *   InitWarpInfo    (Initializes the WarpInfo structure for use)
  15.  *   GetXY           (Returns current cursor position)
  16.  *   GotoXY          (Sets cursor to given position)
  17.  *   WarpText        (Emits text at ~13,500 characters per second)
  18.  */
  19.  
  20. struct WarpInfo {               /* ...the <I> denotes internal use */
  21.         APTR    wi_TextFont;    /*     Pointer to a TextFont structure */
  22.         APTR    wi_BitMap;      /*     Pointer to a BitMap structure */
  23.         UWORD   wi_WhichPlane;  /*     Which bitplane to render into */
  24.         UWORD   wi_Left;        /*     Left edge of 'window' in char loc's */
  25.         UWORD   wi_Top;         /*     Top edge of 'window' in char loc's */
  26.         UWORD   wi_Width;       /*     Width of 'window' in char loc's */
  27.         UWORD   wi_Height;      /*     Height of 'window' in char loc's */
  28.         APTR    wi_WindowTop;   /* <I> Address of top of 'window' */
  29.         APTR    wi_CurLine;     /* <I> Address of start of current line */
  30.         APTR    wi_LastLine;    /* <I> Address of start of last line */
  31.         UWORD   wi_CurX;        /* <I> Current X position */
  32.         UWORD   wi_LastX;       /* <I> Maximum X position on a line */
  33.         UWORD   wi_BPMod;       /* <I> # total possible chars on a line in bp */
  34.         UWORD   wi_Modulo;      /* <I> Add this to get to next line */
  35. };
  36.  
  37. /* -------------------------------------------------------------------------
  38.  * The following structure, NewWarpInfo, is used by these three routines:
  39.  *   SetupFont       (Copies font to given 2048 byte array for faster access)
  40.  *   NewWarp         (Emits text at ~30,000 characters per second)
  41.  *   XORCursor       (XOR's a visible cursor to the current xy location)
  42.  */
  43.  
  44. struct NewWarpInfo {
  45.         UWORD   nwi_XLoc;       /* Current X position in char. loc's. */
  46.         UWORD   nwi_YLoc;       /* Current Y position in char. loc's. */
  47.         APTR    nwi_BitPlane;   /* Address of bitplane to render text into. */
  48.         APTR    nwi_FontData;   /* Address of 2048 byte array for font data. */
  49. };
  50.  
  51. * ---------------------------- *
  52. * End of "graphics/WarpText.h" *
  53. * ---------------------------- *
  54.